﻿@model Model.Customer
@{
    ViewBag.Title = "Default";
}

<html>
<head>
    <title>顾客编辑</title>
    <script src="~/js/jquery-1.6.2.min.js"></script>
    <script src="/js/public_ajax.js" type="text/javascript"></script>
    <script src="/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="/css/UserEdit.css" rel="stylesheet" type="text/css" />
</head>
<body>
    @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "frmMain" }))
    {
        <div class="pageTitle">
            <p><img src="/css/image/tubiao_28.png" />您的位置：<span>顾客编辑</span></p>
            <a href="javascript:history.go(-1);" class="fanHui">返回</a>
        </div>

        <div class="editDiv">
            <table class="editTable" id="tb">
                <tr>
                    <td>姓名：</td>
                    <td>
                        @Html.HiddenFor(m => m.CompanyId)
                        @Html.EditorFor(m => m.CustomerName)
                    </td>

                    <td>金额：</td>
                    <td>
                        @Html.EditorFor(m => m.Money)
                    </td>
                </tr>
                <tr>
                    <td>折扣：</td>
                    <td>
                        @Html.EditorFor(m => m.Discount)
                    </td>

                    <td>编号：</td>
                    <td>
                        @Html.EditorFor(m => m.CustomerNumber)
                    </td>
                </tr>
                <tr>
                    <td>生日：</td>
                    <td>
                        @Html.EditorFor(m => m.Birthday)
                    </td>

                    <td>电话：</td>
                    <td>
                        @Html.EditorFor(m => m.Phone)
                    </td>
                </tr>

                <tr>
                    <td colspan="4" align="center">
                        <input type="submit" class="submitInput" value="" />
                        <span>@Html.Raw(@ViewBag.EditResult)</span>
                    </td>
                </tr>
            </table>
        </div>
    }
    <script type="text/javascript">
        $(function () {//页面加载完成执行

            $("#Birthday").click(function () {//生日 click事件
                WdatePicker({ skin: 'twoer' });
            });

        });
    </script>
</body>
</html>
